<?php
$this->pageTitle=Yii::app()->name . ' - Cadastro';

?>

<p class="titulo">Contato</p>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'login-form',
        'enableAjaxValidation'=>true,
)); ?>

        <p>Contate-nos hoje mesmo!</p>
        <p class="note">Campos com <span class="obrigatorio">*</span> são obrigatórios.</p>

        <div class="row">
                <?php echo $form->labelEx($model,'nome'); ?><br/>
                <?php echo $form->textField($model,'nome',array('class'=>'obrigatorio')); ?>
                <?php echo $form->error($model,'nome'); ?>
        </div>

        <div class="row">
                <?php echo $form->labelEx($model,'email'); ?><br/>
                <?php echo $form->textField($model,'email',array('class'=>'obrigatorio')); ?>
                <?php echo $form->error($model,'email'); ?>
        </div>

        <div class="row">
                <?php echo $form->labelEx($model,'assunto'); ?><br/>
                <?php echo $form->textField($model,'assunto',array('class'=>'obrigatorio')); ?>
                <?php echo $form->error($model,'assunto'); ?>
        </div>

        <div class="row">
                <?php echo $form->labelEx($model,'comentarios'); ?><br/>
                <?php echo $form->textArea($model,'comentarios',array('rows'=>10,'cols'=>30,'class'=>'obrigatorio')); ?>
                <?php echo $form->error($model,'comentarios'); ?>
        </div>

        <div class="row submit">
                <?php echo CHtml::submitButton('Enviar', array('class'=>'botao')); ?>
        </div>
<?php echo $msg_contato; ?>
<?php $this->endWidget(); ?>
</div><!-- form -->
